/* 后台管理系统样式 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #f5f5f5;
    margin: 0;
    padding: 0;
}

/* 后台布局 */
.admin-container {
    display: flex;
    min-height: 100vh;
}

/* 侧边栏 */
.admin-sidebar {
    width: 220px;
    background-color: #343a40;
    color: #fff;
    position: fixed;
    height: 100%;
    overflow-y: auto;
}

.admin-sidebar .sidebar-header {
    padding: 20px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sidebar .sidebar-header h3 {
    margin: 0;
    font-size: 18px;
}

.admin-sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.admin-sidebar li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-sidebar li a {
    display: block;
    padding: 15px;
    color: #fff;
    text-decoration: none;
    transition: all 0.3s;
}

.admin-sidebar li a:hover,
.admin-sidebar li a.active {
    background-color: #007bff;
}

.admin-sidebar li a i {
    margin-right: 10px;
    width: 20px;
    text-align: center;
}

/* 主内容区 */
.admin-content {
    flex: 1;
    padding: 20px;
    margin-left: 220px;
}

/* 面板样式 */
.admin-panel {
    background-color: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    padding: 20px;
}

.admin-panel .panel-heading {
    padding-bottom: 15px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.admin-panel .panel-heading h3 {
    margin: 0;
    font-size: 18px;
}

/* 表格样式 */
.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th, 
.admin-table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.admin-table th {
    background-color: #f8f9fa;
    font-weight: 600;
}

.admin-table tbody tr:hover {
    background-color: #f9f9f9;
}

/* 表单样式 */
.admin-form .form-group {
    margin-bottom: 20px;
}

.admin-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.admin-form input,
.admin-form select,
.admin-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
}

.admin-form button {
    padding: 10px 15px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.admin-form button:hover {
    background-color: #0069d9;
}

/* 轮播图管理样式 */
.banner-preview {
    width: 100%;
    max-width: 300px;
    height: auto;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.banner-list-item {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.banner-list-item img {
    width: 120px;
    height: 60px;
    object-fit: cover;
    margin-right: 15px;
    border-radius: 4px;
}

.banner-list-item .banner-info {
    flex-grow: 1;
}

.banner-list-item .banner-actions {
    display: flex;
    gap: 10px;
}

.banner-actions button {
    padding: 5px 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.banner-actions button.delete {
    background-color: #dc3545;
}

/* 响应式样式 */
@media (max-width: 768px) {
    .admin-sidebar {
        width: 60px;
    }
    
    .admin-sidebar .sidebar-header h3,
    .admin-sidebar li a span {
        display: none;
    }
    
    .admin-content {
        margin-left: 60px;
    }
} 